
print(type('123')) #输出：<class 'str'>

print(type(123))								#输出：<class 'int'>
print(type(123.123))							#输出：<class 'float'>
print(type(False))								#输出：<class 'bool'>
print(type([1,2,3,4]))							#输出：<class 'list'>
print(type([[1,2],[3,4],[5,6]]))				#输出：<class 'list'>
print(type((1,2,3,4,5,6)))						#输出：<class 'tuple'>
print(type({'id':18,'name':'乔安生'}))			#输出：<class 'dict'>


print(type(123) == int)								#输出：True
print(type(123.123) == float)						#输出：True
print(type(False) == bool)							#输出：True
print(type([1,2,3,4]) == list)						#输出：True
print(type((1,2,3,4,5,6)) == tuple)					#输出：True
print(type({'id':18,'name':'乔安生'}) == dict)		#输出：True


print(isinstance(123),(int))							#输出：True
print(isinstance(123.123),(float))						#输出：True
print(isinstance(False),(bool))							#输出：True
print(isinstance([1,2,3,4]),(list))						#输出：True
print(isinstance((1,2,3,4,5,6)),(tuple))				#输出：True
print(isinstance({'id':18,'name':'乔安生'}),(dict))		#输出：True

